package java7.file;

import java.io.IOException;
import java.nio.file.DirectoryStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

public class Basic {
	//WatchService等类库
	public static void main(String[] args) throws IOException {
		Path path = Paths.get(""); 
		try (DirectoryStream<Path> stream = Files.newDirectoryStream(path, "*.*")) {
            for (Path entry: stream) {
                System.out.println(entry);
            }
        }
	}
}
